class CreatePayments < ActiveRecord::Migration
  def self.up
    create_table :payments do |t|
      t.integer :user_id, :null => false
      t.float :amount, :precision => 5, :scale => 2, :null => false
      t.timestamp :created_at
    end
  end

  def self.down
    drop_table :payments
  end
end
